package com.xy.blog.user.dao;

import com.xy.blog.core.exception.BaseException;
import com.xy.blog.user.dao.model.rel.UserAttrDO;

import java.util.List;

/**
 * @author zanhonglei
 * @version V1.0
 * @Description:
 * @date 2020/3/13
 */
public interface IUserAttrRelDao {

    /**
     * 根据用户id删除
     * @param id
     * @throws BaseException
     */
    void deleteByUserId(Long id) throws BaseException;

    /**
     * 根据用户id获取用户属性
     * @param id
     * @return
     */
    List<UserAttrDO> getByUserId(Long id);

}
